/*
 * @Author: your name
 * @Date: 2021-11-11 11:35:04
 * @LastEditTime: 2021-11-11 11:43:43
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \flutter_redux\redux_example\lib\store.dart
 */
class Demo {
  // js
  // constructer (count = 0) {
  //  this.count = count
  // }
  final int? count;
  Demo({this.count});
  // int count = 0;
  // Demo(int inputCount) {
  //   count = inputCount;
  // }
}

var demo = Demo();

// dart里面没有联合类型 -> dynamic
List<String> lists = ['abc', 'aaa'];
var newLists = []
  ..add('value')
  ..addAll(lists);
var newLists1 = ['value', ...lists];
